﻿@model WikeSoft.Data.Models.Sys.KeyValueEditModel

@{
    ViewBag.Title = "添加";
    Layout = "~/Views/Shared/_Form.cshtml";
}

<form class="form-horizontal" action="@Url.Action("Edit")" method="post">

    @Html.HiddenFor(x => x.Id)
    <div class="form-group">
        @Html.LabelFor(x => x.CnName, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.CnName, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.CnName)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.Key, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Key, new {@class = "form-control", placeholder = "",@readonly="readonly"})
            @Html.ValidationMessageFor(x => x.Key)

        </div>
    </div>
    <div class="form-group">
        @Html.LabelFor(x => x.Value, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Value, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.Value)

        </div>
    </div>

    <div class="form-group">
        @Html.LabelFor(x => x.Memo, new {@class = "col-sm-2 control-label"})
        <div class="col-sm-10">
            @Html.TextBoxFor(x => x.Memo, new {@class = "form-control", placeholder = ""})
            @Html.ValidationMessageFor(x => x.Memo)

        </div>
    </div>
    <div>
        <div style="text-align: center">
            <button class="btn btn-default" type="submit" action="submit">保存</button>
            <button class="btn btn-default" type="button" action="back" data-url="@Url.Action("Index")">返回 </button>
        </div>

    </div>
</form>
